package com.competitions.videoedithelper.service;

import com.alibaba.fastjson.JSONObject;
import com.competitions.videoedithelper.entity.ResponseModel;

/**
 * @author Mapler
 */
public interface IVoiceRecognizeService {
    /**
     * 上传并识别语音
     * @param jsonObject 数据
     * @return 转写任务id
     */
    ResponseModel recognizeVoice(JSONObject jsonObject);

    /**
     * 获取语音转写结果
     * @param taskId 任务id
     * @return 返回结果
     */
    ResponseModel getRecognizeResult(String taskId);


    /**
     * 获取语音转写结果
     * @param videoId 视频id
     * @return 返回结果
     */
    ResponseModel checkRecognizeResult(int videoId);
}
